Jud Dagnall Photography Blog

Photography, technology and occasional rants!

Google vs. dagnall.net: my site is not indexed

Posted on October 24th, 2004 in by jud || No Comment

When I switched to the new PHP version of my site, I began to see a strange
problem: Google was no longer indexing my site on a regular basis. My site
would go from being #1 in a search for “Jud Dagnall” to somewhere down in the
second page with only a reference to an old guestbook page. However, every few
months it would jump back up. Yahoo was giving the results correctly (at least
for MY version of correct, since all the other Jud Dagnall references were
indeed about me!). So I’ve been a bit puzzled. Finally, just this morning I
came across a page
that describes the problem and suggests a solution.

In a nutshell, he suggests that the problem is that apache wasn’t associating
php with text/html content type requests. Here’s his fix: Add the
following to the apache config file:

 
    AddHandler php-script php
    AddType text/html php 

However, this does not seem to work for me. When I put it into a .htaccess
file, only part of my page renders. Furthermore, I am not able to
reproduce the bad behavior:

    $ curl -S -H "Accept: text/html" http://www.dagnall.net

This attempts to retrieve the header for a page, only accepting text/html
content types.

However, the page renders correctly, and I get text/html returnethe text of the php page is returnedd. I can request ANY content
type, and it still returns text/html.

I’ll need to investigate further.

Leave a Reply

Your email address will not be published. Required fields are marked *